﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
					xmlns:local="clr-namespace:CBR.Components.Designer"
					>

	<Style x:Key="{x:Type local:DrawingLayer}" TargetType="{x:Type local:DrawingLayer}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type local:DrawingLayer}">
					<Canvas x:Name="PART_DrawingLayer" IsItemsHost="True"  Background="{TemplateBinding Background}" Focusable="True" />
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		
		<Setter Property="ItemsControl.ItemTemplate">
			<Setter.Value>
				<DataTemplate>
					<Grid >
						<Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Stroke="Black" 
								   StrokeThickness="2" RadiusX="10" RadiusY="10" />
					</Grid>
				</DataTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
</ResourceDictionary>